<%-- 
    Document   : AddImage
    Created on : Dec 6, 2010, 5:12:48 PM
    Author     : Dhruv
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Add Image</title>
        <!--below css stylesheet defines page design-->
        <link rel="stylesheet" href="css/styles.css" type="text/css" media="screen" />
    </head>
    <body>
        <div id="wrapper">
            <!--SuperSeeker logo-->
            <img alt="." src="images/mylogo.jpg"/>

            <!--below is code for the menubar-->
            <ul id="blue">
                <!--each bar in the menu is a submit button with actions-->
                <!--the action attribute describes the event-->
                <form method="get" action="Logout.do">
                    <input type="submit" value="logout"/>
                </form>

                <form method="get" action="Toptags.do">
                    <input type="submit" value="topTags"/>
                </form>

                <form method="get" action="EditAccount.do">
                    <input type="submit" value="myAccount"/>
                </form>

                <form method="get" action="ViewAllTags.do">
                    <input type="submit" value="myTags"/>
                </form>

                <form method="get" action="ViewAllImages.do">
                    <input type="submit" value="myImages"/>
                </form>

                <form method="get" action="ViewAllFriends.do">
                    <input type="submit" value="myPals"/>
                </form>

                <form method="get" action="ReturnHome.do">
                    <input type="submit" value="home"/>
                </form>
            </ul>
            <!--end menubar-->
            
            <h1 id="clrBoth">Successful upload</h1>
            <h2>Click on the image to tag it. Or you could tag it later.</h2>
            <!--below displays image you just uploaded-->
            <form method="get" action="ViewImage.do">
                <p><input type="image" alt="." height="200" width="250" src="resources/<c:out value="${addImage.image}"/>"/></p>
                <input type="hidden" name="uploader" value="<c:out value="${addImage.name}"/>"/>
                <input type="hidden" name="uploadedImg" value="<c:out value="${addImage.image}"/>"/>
                <input type="hidden" name="uploaderDT" value="<c:out value="${addImage.datetime}"/>"/>
            </form>
            <!--your name and time of upload-->
            <p>Uploaded by <c:out value="${addImage.name}"/> on <c:out value="${addImage.datetime}"/></p>

        </div>
    </body>
</html>

